﻿ /**
 * 子模块路由
 * Lc
 */

var router = function($urlRouterProvider, $stateProvider){

 	$stateProvider

    //待办列表
    .state('app.aeventList', {
        url: "/aeventList",
        views: {
            'main@' : {
                template : require('./views/aeventList.html'),
                controller : 'aeventList',
            }
        },
        resolve:{
            
        }
    })
    //完善企业信息
    .state('app.acompleteInfo', {
        url: "/acompleteInfo",
        views: {
            'main@' : {
                template : require('./views/acompleteInfo.html'),
                controller : 'acompleteInfo',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }
        }
    })
    
    .state('app.aviewPeople', {
        url: "/aviewPeople",
        views: {
            'main@' : {
                template : require('./views/aviewPeople.html'),
                controller : 'aviewPeople',
            }
        },
        resolve:{

        }
    })   
    .state('app.aviewnotice', {
        url: "/aviewnotice?type",
        views: {
            'main@' : {
                template : require('./views/aviewnotice.html'),
                controller : 'aviewnotice',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.aviewnoticelook', {
        url: "/aviewnoticelook",
        views: {
            'main@' : {
                template : require('./views/aviewnoticelook.html'),
                controller : 'aviewnoticelook',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.acityApplyNoAudit', {
        url: "/acityApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/acityApplyNoAudit.html'),
                controller : 'acityApplyNoAudit',
            }
        },
        resolve:{

        }
    })   
     .state('app.acityApplyYesAudit', {
        url: "/acityApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/acityApplyYesAudit.html'),
                controller : 'acityApplyYesAudit',
            }
        },
        resolve:{

        }
    })
     .state('app.acityApplyThirdAudit', {
        url: "/acityApplyThirdAudit",
        views: {
            'main@' : {
                template : require('./views/acityApplyThirdAudit.html'),
                controller : 'acityApplyThirdAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.acityThirdApplyAuditInfo', {
        url: "/acityThirdApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/acityThirdApplyAuditInfo.html'),
                controller : 'acityThirdApplyAuditInfo',
            }
        },
        resolve:{

        }
    })
    .state('app.acityThirdApplyAuditInfoNo', {
        url: "/acityThirdApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/acityThirdApplyAuditInfoNo.html'),
                controller : 'acityThirdApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    })
    .state('app.acityThirdApplyNoAudit', {
        url: "/acityThirdApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/acityThirdApplyNoAudit.html'),
                controller : 'acityThirdApplyNoAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.acityThirdApplyYesAudit', {
        url: "/acityThirdApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/acityThirdApplyYesAudit.html'),
                controller : 'acityThirdApplyYesAudit',
            }
        },
        resolve:{

        }
    })


    .state('app.aaddviewlidex', {
        url: "/aaddviewlidex",
        views: {
            'main@' : {
                template : require('./views/aaddviewlidex.html'),
                controller : 'aaddviewlidex',
            }
        },
        resolve:{

        }
    })
    .state('app.aviewalevelindex', {
        url: "/aviewalevelindex",
        views: {
            'main@' : {
                template : require('./views/aviewalevelindex.html'),
                controller : 'aviewalevelindex',
            }
        },
        resolve:{

        }
    })    
        .state('app.aaddevaluatepeople', {
        url: "/aaddevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/aaddevaluatepeople.html'),
                controller : 'aaddevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.acountryApplyBase', {
        url: "/acountryApplyBase",
        views: {
            'main@' : {
                template : require('./views/acountryApplyBase.html'),
                controller : 'acountryApplyBase',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.acountryApplyAuditInfo', {
        url: "/acountryApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/acountryApplyAuditInfo.html'),
                controller : 'acountryApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.acountryApplyAuditInfoNo', {
        url: "/acountryApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/acountryApplyAuditInfoNo.html'),
                controller : 'acountryApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.acountryApplyNoAudit', {
        url: "/acountryApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/acountryApplyNoAudit.html'),
                controller : 'acountryApplyNoAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.acountryApplyYesAudit', {
        url: "/acountryApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/acountryApplyYesAudit.html'),
                controller : 'acountryApplyYesAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.acountryApplyAudit', {
        url: "/acountryApplyAudit",
        views: {
            'main@' : {
                template : require('./views/acountryApplyAudit.html'),
                controller : 'acountryApplyAudit',
            }
        },
        resolve:{

        }
    }) 

  .state('app.acityApplyAuditInfoNo', {
        url: "/acityApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/acityApplyAuditInfoNo.html'),
                controller : 'acityApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.acityApplyAuditInfo', {
        url: "/acityApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/acityApplyAuditInfo.html'),
                controller : 'acityApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.acityApplyFirstAudit', {
        url: "/acityApplyFirstAudit",
        views: {
            'main@' : {
                template : require('./views/acityApplyFirstAudit.html'),
                controller : 'acityApplyFirstAudit',
            }
        },
        resolve:{

        }
    }) 

   .state('app.aviewevaluatepeople', {
        url: "/aviewevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/aviewevaluatepeople.html'),
                controller : 'aviewevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    //企业审核
   .state('app.areview_company', {
        url: "/areview_company",
        views: {
            'main@' : {
                template : require('./views/areview_company.html'),
                controller : 'areview_company',
            }
        },
        resolve:{

        }
    })
    //待办列表
    .state('app.aalevelIndexCategory', {
        url: "/aalevelIndexCategory?type",
        views: {
            'main@' : {
                template : require('./views/aalevelIndexCategory.html'),
                controller : 'aalevelIndexCategory',
            }
        },
        resolve:{
            
        }
    })

    .state('app.aaddCategory', {
        url: "/aaddCategory",
        views: {
            'main@' : {
                template : require('./views/aaddCategory.html'),
                controller : 'aaddCategory',
            }
        },
        resolve:{

        }
    })
    //待审核景区列表
    .state('app.aunaudited_viewlist', {
        url: "/aunaudited_viewlist",
        views: {
            'main@' : {
                template : require('./views/aunaudited_viewlist.html'),
                controller : 'aunaudited_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.apassed_viewlist', {
        url: "/apassed_viewlist",
        views: {
            'main@' : {
                template : require('./views/apassed_viewlist.html'),
                controller : 'apassed_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.arejected_viewlist', {
        url: "/arejected_viewlist",
        views: {
            'main@' : {
                template : require('./views/arejected_viewlist.html'),
                controller : 'arejected_viewlist',
            }
        },
        resolve:{

        }
    })
    //景区项目列表
    .state('app.aviewproject_list', {
        url: "/aviewproject_list",
        views: {
            'main@' : {
                template : require('./views/aviewproject_list.html'),
                controller : 'aviewproject_list',
            }
        },
        resolve:{

        }
    })
    //评定员打分列表
    .state('app.amark_list', {
        url: "/amark_list",
        views: {
            'main@' : {
                template : require('./views/amark_list.html'),
                controller : 'amark_list',
            }
        },
        resolve:{

        }
    })
    
};

module.exports = router;